<template>
  <div class="flow-root">
    <flow-item v-for="(item,index) in flowDataList" :key="index" :info-data="item"></flow-item>
  </div>
</template>

<script>
import FlowItem from "@/views/checkBusPage/components/hiddenDangerFlow/flowItem.vue";
import {queryQuestionRecord} from "@/api/checkPage/quertion";

export default {
  components: {
    FlowItem
  },
  props: {
    infoData: {
      type: Object,
    }
  },
  data() {
    return {
      flowDataList: []
    }
  },
  methods: {
    getFlowData() {
      let owner = this
      queryQuestionRecord({id: this.infoData.id}).then(res => {
        owner.flowDataList = res.data
      });
    },
    reload() {
      this.getFlowData()
    }
  },
  created() {
    this.getFlowData()
  }
}
</script>

<style lang="scss" scoped>
.flow-root {
  width: 100%;
  display: flex;
  flex-direction: column;
}
</style>
